package timetabling;

import generalEvolutionaryAlgorithm.EABlackBoxFunction;
import generalEvolutionaryAlgorithm.EAInstance;
import generalEvolutionaryAlgorithm.EAInstanceGenerator;

public class TimetablingGeneratorEmptyTimetable implements EAInstanceGenerator {
	private boolean[][] studentAttendsEvent;
	private boolean[][] eventCanTakePartInRoom;
	private int events, rooms;
	public TimetablingGeneratorEmptyTimetable(boolean[][] studentAttendsEvent, boolean[][] eventCanTakePartInRoom) {
		this.studentAttendsEvent = studentAttendsEvent;
		this.eventCanTakePartInRoom = eventCanTakePartInRoom;
		events = this.studentAttendsEvent[0].length;
		rooms = this.eventCanTakePartInRoom[0].length;
	}

	@Override
	public EAInstance generateInstance(EABlackBoxFunction function) {
		int timeForEvent[] = new int[events];
		for(int i = 0; i < events; i++){
			timeForEvent[i] = -1;
		}
		int roomForEvent[] = new int[events];
		for(int i = 0; i < events; i++){
			roomForEvent[i] = -1;
		}
		return new TimetablingInstance(function, timeForEvent, roomForEvent, rooms);
	}

}
